import axios from "@/api/index"

function detailaction(data){
    return axios({
        url:"/goods/detailaction",
        method:"GET",
        data
    })
}
function addcollect(data){
    return axios({
        url:"/collect/addcollect",
        method:"post",
        data
    })
}
function addCart(data){
    return axios({
        url:"/cart/addCart",
        method:"post",
        data
    })
}

export { // import {index} from "" export可以写多次
    detailaction,
    addcollect,
    addCart
}

// export default index // import index1 from ""  export default 只能写一次